<?php
$SECRET="There is no treasure here";
if (isset($_COOKIE["users"])) {
    if ($_COOKIE["users"] === "explorer") {
        die("Explorers are not welcome");
    }
    $hash = $_COOKIE["hash"];
    $users = $_COOKIE["users"];
    if ($hash === md5($SECRET . $users)) {
        echo "<script >alert('恭喜')</script>";
    } else {
        setcookie("users", "explorer");
        setcookie("hash", md5($SECRET . "explorer"));
    }
}
?>